package com.smartao.base.module;

import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;

import com.smartao.core.dao.BaseEntityDao;

@Repository
public class ModuleDaoImpl extends BaseEntityDao<Module, Long> implements ModuleDao{

	@Override
	public Module findByModuleKey(String moduleKey) {
		return findUnique(Restrictions.eq("moduleKey", moduleKey));
	}
	
}
